export default class TRTCEvent {
  constructor(message, callback, errBack) {
    this.createTime = (new Date()).getTime();
    this.message = message;
    this.callback = callback;
    this.errBack = errBack;
  }

  getMessage() {
    return this.message;
  }

  getCallback() {
    return this.callback;
  }

  getCreateTime() {
    return this.createTime;
  }

  runCallback(result, message) {
    this.callback(result, message);
  }

  runErrBack(result, message) {
    this.errBack(result, message);
  }
}
